home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / serien / purity / nr.42 / includes3v1 / includes3v1.lha / Exec / Nodes.i < prev    next >
Text File  |  1994-12-04  |  2KB  |  65 lines

  1.  
  2. {
  3.         exec/nodes.h $
  4.  }
  5.  
  6. TYPE
  7.  
  8. { *  List Node Structure.  Each member in a list starts with a Node * }
  9.  
  10.   Node = Record
  11.     ln_Succ,            { * Pointer to next (successor) * }
  12.     ln_Pred  : ^Node;        { * Pointer to previous (predecessor) * }
  13.     ln_Type,
  14.     ln_Pri   : Byte;        { * Priority, for sorting * }
  15.     ln_Name  : String;        { * ID string, null terminated * }
  16.   End;    { * Note: word aligned * }
  17.   NodePtr = ^Node;
  18.  
  19.  
  20.  
  21. { * minimal node -- no type checking possible * }
  22.  
  23.   MinNode = Record
  24.     mln_Succ,
  25.     mln_Pred  : ^MinNode;
  26.   End;
  27.   MinNodePtr = ^MinNode;
  28.  
  29.  
  30.  
  31. { *
  32. ** Note: Newly initialized IORequests, and software interrupt structures
  33. ** used with Cause(), should have type NT_UNKNOWN.  The OS will assign a type
  34. ** when they are first used.
  35. * }
  36.  
  37. { *----- Node Types for LN_TYPE -----* }
  38.  
  39. Const
  40.  
  41.   NT_UNKNOWN      =  0;
  42.   NT_TASK      =  1;  { * Exec task * }
  43.   NT_INTERRUPT      =  2;
  44.   NT_DEVICE      =  3;
  45.   NT_MSGPORT      =  4;
  46.   NT_MESSAGE      =  5;  { * Indicates message currently pending * }
  47.   NT_FREEMSG      =  6;
  48.   NT_REPLYMSG      =  7;  { * Message has been replied * }
  49.   NT_RESOURCE      =  8;
  50.   NT_LIBRARY      =  9;
  51.   NT_MEMORY      = 10;
  52.   NT_SOFTINT      = 11;  { * Internal flag used by SoftInits * }
  53.   NT_FONT      = 12;
  54.   NT_PROCESS      = 13;  { * AmigaDOS Process * }
  55.   NT_SEMAPHORE      = 14;
  56.   NT_SIGNALSEM      = 15;  { * signal semaphores * }
  57.   NT_BOOTNODE      = 16;
  58.   NT_KICKMEM      = 17;
  59.   NT_GRAPHICS      = 18;
  60.   NT_DEATHMESSAGE = 19;
  61.  
  62.   NT_USER      = 254;  { * User node types work down from here * }
  63.   NT_EXTENDED      = 255;
  64.  
  65.